<?php echo $this->Html->link('Listado Beneficiarios', array('controller' => 'PlotPolls', 'action' => 'print_list'), array('target' => '_blank', 'class' => 'actions', 'indicator' => 'loading')) ?>

<div class="paging">
    <?php
    echo $this->Paginator->options(array('update' => '#content', 'evalScripts' => false));
    echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
    echo $this->Paginator->numbers(array('separator' => ''));
    echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
</div>
<table id="tabla">
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('Id', 'Follow.id'); ?></th>
            <th><?php echo $this->Paginator->sort('Observaciones', 'Follow.observaciones'); ?></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($Follows as $Follow): ?>
            <tr>
                <td><?php echo $Follow['Follow']['id']; ?></td>
                <td><?php echo $Follow['Follow']['observaciones']; ?></td>
                <td><?php echo $this->Ajax->link('Plan_de_inversión', array('controller' => 'Budgets', 'action' => 'index', $Follow['Follow']['id']), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?></td>
                <td><?php echo $this->Ajax->link('Lineas_productivas', array('controller' => 'FollowProducts', 'action' => 'index', $Follow["Follow"]["id"]), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?></td>
                <td><?php echo $this->Ajax->link('Comités_de_compras', array('controller' => 'Committees', 'action' => 'index', $Follow['Follow']['id']), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?></td>
                <td><?php echo $this->Ajax->link('Visitas', array('controller' => 'Visits', 'action' => 'index', $Follow["Follow"]["id"]), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?></td>
                <td><?php echo $this->Ajax->link('Editar', array('controller' => 'Follows', 'action' => 'edit', $Follow['Follow']['id']), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?></td>
                <td><?php echo $this->Ajax->link('Eliminar', array('controller' => 'Follows', 'action' => 'delete', $Follow['Follow']['id']), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions'), '¿Esta seguro que desea borrar este registro?'); ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Js->writeBuffer(); ?>
<br/>
<br/>
<?php
if (empty($Follows))
    echo $this->Ajax->link('Adicionar', array('controller' => 'Follows', 'action' => 'add', $proyect_id), array('update' => 'content', 'class' => 'actions', 'indicator' => 'loading'), '¿Desea adicionar un nuevo registro?');
?>